//
//  PanSwiper.h
//  PanPush
//
//  Created by lpc on 16/3/16.
//  Copyright © 2016年 lpc. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol SwiperNextViewControllerDelegate;

@interface PanSwiper : NSObject

@property (nonatomic,assign) BOOL isForbidDragBack; //Defalt is NO.
@property (nonatomic,weak) id <SwiperNextViewControllerDelegate> delegate;

- (instancetype)initWithNavigationController:(UINavigationController *)navigationController;

@end


@protocol SwiperNextViewControllerDelegate <NSObject>

@optional
- (void)didEndPanPushToNextControllerForPanSwiper:(PanSwiper *)swiper;
- (UIViewController *)beginPanPushToNextControllerForPanSwiper:(PanSwiper *)swiper ;

@end